package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/*CREATE TABLE `cmfz_role_resource` (
  `id` int(11) NOT NULL auto_increment,
  `role_name` varchar(50) default NULL,
  `resource_id` int(11) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
角色-权限表
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cmfz_role_resource")
public class CmfzRoleResource implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String roleName;
    private Integer resourceId;
}
